package singleton;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;

import file.LoadProperties;

public class SeriesPropertiesSingleton {
    
    private static SeriesPropertiesSingleton SERIES;
    private Properties prop;
    
    private SeriesPropertiesSingleton() throws FileNotFoundException, IOException{
        prop = LoadProperties.load("series.properties");
    }
    
    public static SeriesPropertiesSingleton getSeriesProperties() throws FileNotFoundException, IOException{
        if(SERIES == null){
            SERIES = new SeriesPropertiesSingleton();
        }
        return SERIES;
    }

    public Properties getProp() {
        return prop;
    }

    public void setProp(Properties prop) {
        this.prop = prop;
    }
    
    
    
}
